@import "~@/css/variables";
@import "~@/css/AnswerSystemCommon";

.baseContainer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: #FFFFFF;
  z-index: 2000;

  .searchBox {
    position: absolute;
    left: 60px;
    right: 0;
    transform: translateX(0);
    transition: all .3s;

    .main {
      background: @dark-blue;
      height: @headerHeight;
      display: flex;
      align-items: center;

      .inputBox {
        width: 0;
        flex: 1;
        display: flex;
        align-items: center;

        .searchBtn[data-hover='true']:hover {
          cursor: pointer;
        }

        .searchBtn {
          border: 10px solid transparent;
          border-left: none;
          border-right: none;
        }

        input {
          border: none;
          border-bottom: 1px #FFFFFF solid;
          background: transparent;
          outline: none;
          flex: 1;
          margin-left: -35px;
          padding: 4px 4px 4px 34px;
        }

        input:focus {
          outline: none;
        }
      }

      .currentTypeBtn {
        //width: 140px;
        background-color: @light-blue-color;
        border-radius: 4px;
        padding: 4px 10px;
        user-select: none;
        margin: 0 10px;
      }

      .currentTypeBtn:hover {
        cursor: pointer;
        background-color: @light-blue-color-hover;
      }

      .cancel {
        user-select: none;
        border: solid 10px transparent;

        &:hover {
          cursor: pointer;
        }
      }
    }

    .searchType {
      background: @dark-blue;
      margin-left: 5px;
      margin-right: 48px;
      line-height: 42px;
      list-style: none;
      border-bottom-left-radius: 4px;
      border-bottom-right-radius: 4px;
      overflow: hidden;

      li {
        padding-left: 30px;
        display: flex;
        align-items: center;

        span {
          flex: 1;
          width: 0;
        }
      }

      li[date-current='true'] {
        background: rgba(24, 147, 255, 0.52);
      }

      li:hover {
        cursor: pointer;
        background: #1990FF;
      }
    }

    .searchType[data-show='false'] {
      display: none;
    }
  }

  .searchBox[data-show='false'] {
    transform: translateX(100%);
    left: -40px;
    right: 40px;
    transition: all .3s;

    .inputBox {
      input {
        margin-left: 0;
      }
    }
  }

  .mask {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
  }
}
